package com.jy.modules.cims.data.dao;

import java.util.List;
import java.util.Map;

import com.jy.modules.cims.data.interact.xintian.loanDetail.LoanInfo;
import com.jy.modules.cims.data.interact.xintian.loanresult.request.LoanBatch;
import com.jy.modules.cims.data.interact.xintian.loanresult.request.LoanReq;
import com.jy.modules.cims.data.interact.xintian.loanresult.response.LoanStatus;
import com.jy.platform.core.mybatis.MyBatisRepository;

/**
 * 
 */
@MyBatisRepository
public interface EsbInterDao {

    List<LoanInfo> selectLoanInfoByPaging(Map<String, Object> searchParams);

    void updateLoanSendStatus(List<LoanInfo> list);

    void updateLoanSend(String deal_code);

    void insertLoanSendStatus(List<LoanInfo> list);

    List<Map<String, String>> selectLoanInfo();

    Map<String, String> selectBatchNo(String deal_code);

    void insertBatchNo(Map map);

    List<LoanBatch> selectLoanBatch();

    List<LoanReq> selectLoanReq(String batch_no);

    void updateLoanStatus(Map map);

    int selectBatchNoStr();
    
    int selectBatchIdStr();

    int selectLoanInfoCount(String deal_code);

    /**
     * 通知核心
     * 
     * @title: approveResult
     * @author
     * @description:
     * @date 2015-3-5 下午5:30:41
     * @return
     * @throws
     */
    List<LoanStatus> approveResult();

    void updateApproveResult(List<LoanStatus> list);
    
    void test();
}
